from collections.abc import dict_values

d={
    "name":"张三",
    "age":18,
    "gender":"男"
}
d["age1"] = 19
print(d)
print(type(d))
d1 = dict()
for i in d:
    print(i,d[i])
for k,v in d.items():
    print(k,v)
d.pop("age");
print(d)
d.update({"name1":"李四"})
print(d)
d.popitem()
print(d)
d.setdefault("name2","王五")
print(d)

